<ion-content>
    <app-main-header
            [showBack]="true"
            [title]="'证书详情'"
            [specialClass]="'single-page-background'"></app-main-header>
    <div class="page-content single-page">
        <div class="single-content">
            <div class="detail-block" *ngIf="currentType !== '2'">
                <img class="detail-img" [src]="detailData?.photo ? detailData.photo : './assets/image/temporary/certificate-img.png'" alt="">
                <div class="detail-text-item">
                    <span class="text-label">存证ID：</span>
                    <span class="text-value">{{detailData?.depositId}}</span>
                </div>
                <div class="detail-text-item">
                    <span class="text-label">区块链交易值：</span>
                    <span class="text-value">{{detailData?.tradingValue}}</span>
                </div>
            </div>
            <div class="detail-list" *ngIf="currentType === '2'">
                <div class="detail-block">
                    <div class="detail-text-item item-border-bottom">
                        <span class="text-label">姓名：</span>
                        <span class="text-value">{{detailData?.name}}</span>
                    </div>
                    <div class="detail-text-item item-border-bottom">
                        <span class="text-label">出生日期：</span>
                        <span class="text-value">{{detailData?.csrq}}</span>
                    </div>
                </div>
                <div class="detail-block">
                    <div class="detail-text-item item-border-bottom">
                        <span class="text-label">执业地点：</span>
                        <span class="text-value">{{detailData?.address}}</span>
                    </div>
                    <div class="detail-text-item item-border-bottom">
                        <span class="text-label">执业机构：</span>
                        <span class="text-value">{{detailData?.ownerOrg}}</span>
                    </div>
                    <div *ngIf="detailData?.yh === '医生'">
                        <div class="detail-text-item item-border-bottom">
                            <span class="text-label">次执业机构：</span>
                            <span class="text-value">{{detailData?.secondOrg}}</span>
                        </div>
                        <div class="detail-text-item item-border-bottom">
                            <span class="text-label">医师级别：</span>
                            <span class="text-value">{{detailData?.level}}</span>
                        </div>
                        <div class="detail-text-item item-border-bottom">
                            <span class="text-label">医师类别：</span>
                            <span class="text-value">{{detailData?.type}}</span>
                        </div>
                    </div>
                    <div class="detail-text-item item-border-bottom">
                        <span class="text-label">任职资格：</span>
                        <span class="text-value">{{detailData?.qualified}}</span>
                    </div>
                </div>
<!--                <div class="detail-block" *ngIf="detailData?.yh === '护士'">-->
<!--                    <div class="detail-text-item item-border-bottom">-->
<!--                        <span class="text-label">护士证号：</span>-->
<!--                        <span class="text-value">{{detailData?.userName}}</span>-->
<!--                    </div>-->
<!--                    <div class="detail-text-item item-border-bottom">-->
<!--                        <span class="text-label">注册有效期至：</span>-->
<!--                        <span class="text-value">{{detailData?.gender}}</span>-->
<!--                    </div>-->
<!--                </div>-->
                <div class="detail-block">
                    <div class="detail-text-item item-border-bottom">
                        <span class="text-label">存证ID：</span>
                        <span class="text-value">{{detailData?.depositId}}</span>
                    </div>
                    <div class="detail-text-item item-border-bottom">
                        <span class="text-label">区块交易值：</span>
                        <span class="text-value">{{detailData?.tradingValue}}</span>
                    </div>
                </div>
            </div>
        </div>
    </div>
</ion-content>
